From 37623ba6964acf573e100903fbdd1453d69d2e26 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 28 Sep 2023 15:13:55 +0100 Subject: Add Patio code gen for struct field accesses --- ...mpiler.testing.snapshots.Snapshotter)].expected | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..4ceff319 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,23 @@ +Compilation unit elements: + + +Locals: + * (val "tmp__id__0" int) + * (val "structValuePointer__0" data-ptr) + +Instructions: + +( + (int-to-data-ptr (local "structValuePointer__0") (local "b")) + ( + memory-load + (local "tmp__id__0") + pointer=(local "structValuePointer__0") + layout=(struct (int int int)) + offset=(1) + ) +) + +Temporary stack: + * tmp__id__0 + * a -- cgit v1.2.3